﻿<UserControl x:Class="Ausy.Silverlight.Survey.AccountModule.ViewParts.CreateAccountView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:prism="http://www.codeplex.com/prism" mc:Ignorable="d" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" d:DesignHeight="518">

    <Border BorderBrush="#FF2D2D2D" BorderThickness="0" Margin="10" CornerRadius="20" Width="535">
        <Border.Effect>
            <DropShadowEffect BlurRadius="21" Direction="-90" ShadowDepth="0"/>
        </Border.Effect>
        <Border.Background>
            <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                <GradientStop Color="#FFFF4444" Offset="0"/>
                <GradientStop Color="#FFB9000A" Offset="1"/>
            </LinearGradientBrush>
        </Border.Background>
        <StackPanel x:Name="LayoutRoot" Orientation="Vertical" >
            <Grid VerticalAlignment="Top" Height="50" Margin="0,0,0,10" HorizontalAlignment="Center">
                <Grid.Effect>
                    <DropShadowEffect BlurRadius="21" Direction="0" ShadowDepth="0" Opacity="0.5"/>
                </Grid.Effect>
                <Path Data="F1M835.17,227.183L835.17,278.155C835.17,284.783,840.543,290.156,847.17,290.156L847.17,290.156L1114.605,290.156C1121.233,290.156,1126.606,284.783,1126.606,278.155L1126.606,278.155L1126.606,227.183z" Stretch="Fill" Width="291.436" Margin="0" UseLayoutRounding="False" HorizontalAlignment="Center" d:LayoutOverrides="Width" VerticalAlignment="Center">
                    <Path.Fill>
                        <LinearGradientBrush EndPoint="0.5,0.292" StartPoint="0.5,1.281">
                            <GradientStop Color="#FFFF4444" Offset="0"/>
                            <GradientStop Color="#FFB9000A" Offset="1"/>
                        </LinearGradientBrush>
                    </Path.Fill>
                </Path>
                <TextBlock Text="Vos coordonnées"  Style="{StaticResource TitleTextBlockStyle}"/>
            </Grid>
            <StackPanel Orientation="Vertical">
                <TextBlock Text="Nom : " Style="{StaticResource LabelTextBlockStyle}"/>
                <TextBox Text="{Binding AccountName, Mode=TwoWay, NotifyOnValidationError=True}" Style="{StaticResource FormMandatoryTextBoxStyle}" />
            </StackPanel>
            <StackPanel Orientation="Vertical">
                <TextBlock Text="Prénom : " Style="{StaticResource LabelTextBlockStyle}"/>
                <TextBox Text="{Binding AccountFirstName, Mode=TwoWay, NotifyOnValidationError=True}" Style="{StaticResource FormMandatoryTextBoxStyle}" />
            </StackPanel>
            <StackPanel Orientation="Vertical">
                <TextBlock Text="Email : " Style="{StaticResource LabelTextBlockStyle}"/>
                <TextBox Text="{Binding AccountEmail, Mode=TwoWay, NotifyOnValidationError=True}" Style="{StaticResource FormMandatoryTextBoxStyle}" />
            </StackPanel>
            <StackPanel Orientation="Vertical">
                <TextBlock Text="Téléphone : " Style="{StaticResource LabelTextBlockStyle}"/>
                <TextBox Text="{Binding AccountPhone, Mode=TwoWay, NotifyOnValidationError=True}" Style="{StaticResource FormMandatoryTextBoxStyle}" />
            </StackPanel>
            <StackPanel Orientation="Vertical">
                <TextBlock Text="Fonction : " Style="{StaticResource LabelTextBlockStyle}"/>
                <TextBox Text="{Binding AccountFunction, Mode=TwoWay, NotifyOnValidationError=True}" Style="{StaticResource FormTextBoxStyle}" />
            </StackPanel>
            <StackPanel Orientation="Vertical">
                <TextBlock Text="Société : " Style="{StaticResource LabelTextBlockStyle}"/>
                <TextBox Text="{Binding AccountCompany, Mode=TwoWay, NotifyOnValidationError=True}" Style="{StaticResource FormTextBoxStyle}" />
            </StackPanel>
            <StackPanel Orientation="Vertical">
                <TextBlock Text="Experience : " Style="{StaticResource LabelTextBlockStyle}"/>
                <TextBox Text="{Binding AccountExperience, Mode=TwoWay, NotifyOnValidationError=True}" Style="{StaticResource FormTextBoxStyle}" />
            </StackPanel>
            <Button Content="GO !" prism:Click.Command="{Binding ValidateCommand}"  Style="{StaticResource DefaultButtonStyle}" Width="155"/>
        </StackPanel>
    </Border>
</UserControl>
    